{% extends 'mote.html' %}
{% block asset %}
 <div class="table-responsive">
            <a href="{% url 'user_add' %}"><button class=" btn btn-info">添加</button></a>
<table class="table table-bordered table-striped">
    <thead>
    <tr class="info">
     <th>id</th>
     <th>用户名</th>
        <th>姓名</th>
        <th>手机号</th>
        <th>操作</th>
     </tr>
    </thead>
    <tbody>

   {% for foo in user_all %}
        <tr>
            <td>{{ forloop.counter }}</td>
            <td>{{ foo.user }}</td>
            <td>{{ foo.name }}</td>
            <td>{{ foo.phon }}</td>
        <td>
            <button id="User"  name="{{ foo.id }}" class="ajax btn btn-danger">删除</button>
            <a href="/user_edit/?id={{ foo.id }}"><button class="btn btn-primary">编辑</button></a>
            </td>
        </tr>
    {% endfor %}


    </tbody>
</table>
 </div>
{% endblock %}
{% block k1 %}
    class="active"
{% endblock %}
